<?php
session_start();
include_once("function_right.php");
if(!JudgeUserRight()) return FALSE;
?>

<?php
include_once "function_dhcp_operate.php";

$in_arry['Enabled'] = $_POST['enabled'];
$in_arry['Interface'] = "";
if (gettype($_REQUEST['dev']) == "array")
	foreach ($_REQUEST['dev'] as $l)
	{
		$in_arry['Interface'] .= $l. "|";
	}
$in_arry['ServerAddr'] = $_POST['ip'];
SetXmlDhcpRelay($in_arry);

include_once "function_misc_log.php";
$in_arry['Interface'] = "'". trim($in_arry['Interface']). "'";
logger("Moidfy", $in_arry, "Dhcp_Relay");

echo("<meta http-equiv='refresh'content=0;URL='dhp_relay_manage.php'>");
?>
